Custom Culture Sample | (Console Application) |
This document contains the release information for the .NET Framework Custom Culture sample. You will find the following sections below:
The CustomCulture sample shows how to create a custom culture by creating a new class that inherits from the CultureInfo class. This custom culture can be used for both formatting information (currency amount in this sample) and to retrieve resources from a satellite resource DLL. In retrieving resources, it also demonstrates how to retrieve resources from a parallel assembly. This sample can only be built from the command line. It can not be built using Microsoft Visual Studio .NET.
The following bullets briefly describe the classes and technologies used by this sample.
This sample is located in the Technologies\Localization\CustomCulture subdirectory of the .NET Framework SDK samples directory.
For Example:
C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Localization\CustomCulture
In order to properly build and run this sample, the following steps need to be performed.
Type BUILD.bat from the command line.
For Example:
C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Localization\CustomCulture\VB>Build.bat
In order to run this sample, follow the instructions listed below.
For Example:
C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Localization\CustomCulture\VB>CustomCulture.exe
For the .Net Framework samples to function properly, your Path, Include, and Lib environment variables must be set correctly. In many cases, the SDK install program updates these environment variables for you. However, if you installed the .Net Framework SDK using Visual Studio .NET, or unselected "register environment variables" during setup, these environment variables will not be updated. You can set the Path, Include and Lib environment variables by running SDKVars.bat, located in the <SDKRoot>\Bin directory. SDKVars.bat must be executed in every command shell.